package com.by.config;

import com.by.filter.ErrorFilter;
import com.by.filter.RouteFilter;
import com.by.filter.TokenFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.06.09.20.12
 */
@Configuration
public class FilterConfig {
    @Bean
    TokenFilter tokenFilter(){
        return new TokenFilter();
    }


    @Bean
    RouteFilter routeFilter(){
        return new RouteFilter();
    }

    @Bean
    ErrorFilter errorFilter(){
        return new ErrorFilter();
    }
}
